package com.course.design.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.course.design.constants.Constant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 描述:
 *
 * @author qinlianji
 * @create 2020-02-17
 */
@Data
@Accessors(chain = true)
public class Ltxx {

    @TableId
    @ApiModelProperty(value = "聊天消息标识")
    private String msgId;

    @ApiModelProperty(value = "发送者")
    private String fromUser;

    @ApiModelProperty(value = "发送者姓名")
    private String fromUsername;

    @ApiModelProperty(value = "接受者")
    private String toUser;

    @ApiModelProperty(value = "消息类型 0: 文本")
    private Integer infoType;

    @ApiModelProperty(value = "文件信息标识Id")
    private String wjxxbsId;

    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "消息读取标记 1： 未读")
    private String unread;

    @ApiModelProperty(value = "聊天信息")
    private String message;

    @JsonFormat(pattern = Constant.FULL_DATE_PATTERN)
    @ApiModelProperty(value = "发送时间")
    private Date time;

    @TableLogic
    @ApiModelProperty(value = "'数据有效标记 '")
    private String sjyxbjFg;

}
